package cn.bb.demo;

import java.net.ServerSocket;
import java.net.Socket;

public class SocketClient {
    public static void main(String[] args) throws Exception {
       Socket socket = new Socket("127.0.0.1",8080);
       //客户端通过输出流向服务端写入数据
        socket.getOutputStream().write(11);

    }
}
